/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Dani
 */
import java.util.ArrayList;
import java.util.Iterator;
import java.util.*;
import java.util.Collection;
import javax.swing.JFileChooser;
import javax.swing.filechooser.FileNameExtensionFilter;

public class VentanaPrincipal extends javax.swing.JFrame {

    /**
     * Creates new form VentanaPrincipal
     */
    Equipo miEquipo = null;
    Mercado mercado = new Mercado();
    
    private FileNameExtensionFilter filtro = new FileNameExtensionFilter("Archivo binario", "dat");

    public VentanaPrincipal() {
        initComponents();
        VentanaPrincipal.setVisible(true);
        Seleccionar.setVisible(false);
        VentanaJugador.setVisible(false);
        VentanaEquipo.setVisible(false);
        VentanaPortero.setVisible(false);
        crearequipo.setVisible(false);
        Eliminar.setVisible(false);
        EliminarE.setVisible(false);
        ElegirE.setVisible(false);
        jugarS.setVisible(false);
        Fichar.setVisible(false);
        Traspasar.setVisible(false);
        Vender.setVisible(false);
        bjugar.setVisible(false);
        JugarT.setVisible(false);
        Calendario.setVisible(false);
        jButton2.setEnabled(false);
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        RBGpresidirec = new javax.swing.ButtonGroup();
        jDesktopPane1 = new javax.swing.JDesktopPane();
        VentanaPrincipal = new javax.swing.JPanel();
        añadirjugador = new javax.swing.JButton();
        eliminarjugador = new javax.swing.JButton();
        crearequipo = new javax.swing.JButton();
        eliminarequipo = new javax.swing.JButton();
        jugar = new javax.swing.JButton();
        salir = new javax.swing.JButton();
        cargar = new javax.swing.JButton();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        a = new javax.swing.JScrollPane();
        notaP = new javax.swing.JTextPane();
        gu = new javax.swing.JButton();
        jScrollPane8 = new javax.swing.JScrollPane();
        campog = new javax.swing.JTextPane();
        VentanaJugador = new javax.swing.JPanel();
        nombrej = new javax.swing.JLabel();
        campon = new javax.swing.JTextField();
        apellidosj = new javax.swing.JLabel();
        campoa = new javax.swing.JTextField();
        edadj = new javax.swing.JLabel();
        campoe = new javax.swing.JTextField();
        pesoj = new javax.swing.JLabel();
        campoj = new javax.swing.JTextField();
        alturaj = new javax.swing.JLabel();
        campoalt = new javax.swing.JTextField();
        ndeportivo = new javax.swing.JLabel();
        campondep = new javax.swing.JTextField();
        colocacionj = new javax.swing.JLabel();
        campoc = new javax.swing.JTextField();
        atributos = new javax.swing.JLabel();
        velocidadj = new javax.swing.JLabel();
        campov = new javax.swing.JTextField();
        potenciaj = new javax.swing.JLabel();
        campopot = new javax.swing.JTextField();
        regatej = new javax.swing.JLabel();
        campor = new javax.swing.JTextField();
        tiroj = new javax.swing.JLabel();
        campot = new javax.swing.JTextField();
        crearjugador = new javax.swing.JButton();
        volver = new javax.swing.JButton();
        jLabel9 = new javax.swing.JLabel();
        Seleccionar = new javax.swing.JPanel();
        jcampo = new javax.swing.JButton();
        jportero = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        volverj = new javax.swing.JButton();
        VentanaPortero = new javax.swing.JPanel();
        nombrej1 = new javax.swing.JLabel();
        campon1 = new javax.swing.JTextField();
        apellidosj1 = new javax.swing.JLabel();
        campoa1 = new javax.swing.JTextField();
        edadj1 = new javax.swing.JLabel();
        campoe1 = new javax.swing.JTextField();
        pesoj1 = new javax.swing.JLabel();
        campoj1 = new javax.swing.JTextField();
        alturaj1 = new javax.swing.JLabel();
        campoalt1 = new javax.swing.JTextField();
        ndeportivo1 = new javax.swing.JLabel();
        campondep1 = new javax.swing.JTextField();
        colocacionj1 = new javax.swing.JLabel();
        campoc1 = new javax.swing.JTextField();
        atributos1 = new javax.swing.JLabel();
        velocidadj1 = new javax.swing.JLabel();
        campov1 = new javax.swing.JTextField();
        potenciaj1 = new javax.swing.JLabel();
        campopot1 = new javax.swing.JTextField();
        regatej1 = new javax.swing.JLabel();
        campor1 = new javax.swing.JTextField();
        tiroj1 = new javax.swing.JLabel();
        campot1 = new javax.swing.JTextField();
        crearjugador1 = new javax.swing.JButton();
        volver1 = new javax.swing.JButton();
        jLabel13 = new javax.swing.JLabel();
        VentanaEquipo = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        nombreeq = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        domicilio = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        himno = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        añoeq = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        dinero = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        bandera = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        nombrep = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        apellidosp = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        edad = new javax.swing.JTextField();
        peso = new javax.swing.JLabel();
        pesop = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        altura = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        volvere = new javax.swing.JButton();
        creare = new javax.swing.JButton();
        jLabel16 = new javax.swing.JLabel();
        presidente = new javax.swing.JRadioButton();
        directivo = new javax.swing.JRadioButton();
        Eliminar = new javax.swing.JPanel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        nomdep = new javax.swing.JTextField();
        resolucion = new javax.swing.JScrollPane();
        notas = new javax.swing.JTextPane();
        jLabel23 = new javax.swing.JLabel();
        volverE = new javax.swing.JButton();
        eliminar = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        areaS = new javax.swing.JTextArea();
        EliminarE = new javax.swing.JPanel();
        jLabel17 = new javax.swing.JLabel();
        campoEq = new javax.swing.JTextField();
        vol = new javax.swing.JButton();
        elim = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        textot = new javax.swing.JTextArea();
        nota2 = new javax.swing.JLabel();
        nota22 = new javax.swing.JTextField();
        ElegirE = new javax.swing.JPanel();
        jLabel22 = new javax.swing.JLabel();
        campoEq1 = new javax.swing.JTextField();
        vol1 = new javax.swing.JButton();
        elim1 = new javax.swing.JButton();
        jScrollPane3 = new javax.swing.JScrollPane();
        texto1 = new javax.swing.JTextArea();
        nota3 = new javax.swing.JLabel();
        nota23 = new javax.swing.JTextField();
        jugarS = new javax.swing.JPanel();
        fichar = new javax.swing.JButton();
        traspasar = new javax.swing.JButton();
        vender = new javax.swing.JButton();
        jLabel27 = new javax.swing.JLabel();
        volverMP = new javax.swing.JButton();
        volverm = new javax.swing.JButton();
        guardar = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        notaG = new javax.swing.JTextField();
        jButton4 = new javax.swing.JButton();
        Fichar = new javax.swing.JPanel();
        jLabel28 = new javax.swing.JLabel();
        dineroD = new javax.swing.JTextField();
        jLabel29 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        areaf = new javax.swing.JTextArea();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        nomdd = new javax.swing.JTextField();
        jLabel32 = new javax.swing.JLabel();
        notaf = new javax.swing.JTextField();
        volverf = new javax.swing.JButton();
        fichas = new javax.swing.JButton();
        Traspasar = new javax.swing.JPanel();
        jLabel33 = new javax.swing.JLabel();
        aa = new javax.swing.JScrollPane();
        jds = new javax.swing.JTextArea();
        jLabel34 = new javax.swing.JLabel();
        jScrollPane6 = new javax.swing.JScrollPane();
        mjds = new javax.swing.JTextArea();
        jLabel35 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel38 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        n1 = new javax.swing.JTextField();
        n2 = new javax.swing.JTextField();
        n3 = new javax.swing.JTextField();
        n4 = new javax.swing.JTextField();
        ve = new javax.swing.JButton();
        si = new javax.swing.JButton();
        tujugador = new javax.swing.JTextField();
        jLabel45 = new javax.swing.JLabel();
        Vender = new javax.swing.JPanel();
        jLabel41 = new javax.swing.JLabel();
        jScrollPane5 = new javax.swing.JScrollPane();
        mj = new javax.swing.JTextArea();
        jLabel42 = new javax.swing.JLabel();
        jScrollPane7 = new javax.swing.JScrollPane();
        jse = new javax.swing.JTextArea();
        jLabel43 = new javax.swing.JLabel();
        jLabel44 = new javax.swing.JLabel();
        nn = new javax.swing.JTextField();
        vv = new javax.swing.JButton();
        vder = new javax.swing.JButton();
        bjugar = new javax.swing.JPanel();
        jLabel46 = new javax.swing.JLabel();
        vP = new javax.swing.JButton();
        jLabel47 = new javax.swing.JLabel();
        eql = new javax.swing.JTextField();
        jLabel48 = new javax.swing.JLabel();
        eqv = new javax.swing.JTextField();
        jLabel49 = new javax.swing.JLabel();
        resultado = new javax.swing.JTextField();
        bjugarp = new javax.swing.JButton();
        error = new javax.swing.JLabel();
        JugarT = new javax.swing.JPanel();
        jLabel50 = new javax.swing.JLabel();
        volT = new javax.swing.JButton();
        jScrollPane9 = new javax.swing.JScrollPane();
        torneo = new javax.swing.JTextArea();
        jLabel51 = new javax.swing.JLabel();
        eqc = new javax.swing.JTextField();
        Calendario = new javax.swing.JPanel();
        jLabel52 = new javax.swing.JLabel();
        jScrollPane10 = new javax.swing.JScrollPane();
        textoc = new javax.swing.JTextArea();
        volverc = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);

        jDesktopPane1.setPreferredSize(new java.awt.Dimension(560, 550));

        VentanaPrincipal.setPreferredSize(new java.awt.Dimension(700, 650));

        añadirjugador.setText("Añadir Jugador");
        añadirjugador.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                añadirjugadorActionPerformed(evt);
            }
        });

        eliminarjugador.setText("Eliminar Jugador");
        eliminarjugador.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                eliminarjugadorActionPerformed(evt);
            }
        });

        crearequipo.setText("Crear Equipo");
        crearequipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                crearequipoActionPerformed(evt);
            }
        });

        eliminarequipo.setText("Eliminar Equipo");
        eliminarequipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                eliminarequipoActionPerformed(evt);
            }
        });

        jugar.setText("JUGAR");
        jugar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jugarActionPerformed(evt);
            }
        });

        salir.setText("Salir");
        salir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                salirActionPerformed(evt);
            }
        });

        cargar.setText("Cargar Partida");
        cargar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cargarActionPerformed(evt);
            }
        });

        jLabel24.setText("                                    EQUIPOS");

        jLabel25.setText("                                 JUGADORES");

        jLabel26.setText("                                                                         PC FÚTBOL MANAGER 2013");

        jLabel21.setForeground(new java.awt.Color(255, 0, 0));
        jLabel21.setText("                                             Para crear un equipo, debemos añadir mínimo 11 jugadores");

        notaP.setDisabledTextColor(new java.awt.Color(255, 0, 51));
        notaP.setEnabled(false);
        a.setViewportView(notaP);

        gu.setText("Guardar");
        gu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                guActionPerformed(evt);
            }
        });

        jScrollPane8.setViewportView(campog);

        javax.swing.GroupLayout VentanaPrincipalLayout = new javax.swing.GroupLayout(VentanaPrincipal);
        VentanaPrincipal.setLayout(VentanaPrincipalLayout);
        VentanaPrincipalLayout.setHorizontalGroup(
            VentanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VentanaPrincipalLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(VentanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel26, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(VentanaPrincipalLayout.createSequentialGroup()
                        .addGroup(VentanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(VentanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(añadirjugador, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(eliminarjugador, javax.swing.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE))
                            .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(54, 54, 54)
                        .addGroup(VentanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(eliminarequipo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel24, javax.swing.GroupLayout.DEFAULT_SIZE, 357, Short.MAX_VALUE)
                            .addComponent(crearequipo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(VentanaPrincipalLayout.createSequentialGroup()
                        .addGroup(VentanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(a, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cargar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 210, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(VentanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(gu, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                            .addComponent(jScrollPane8)))
                    .addComponent(jugar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VentanaPrincipalLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(salir, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        VentanaPrincipalLayout.setVerticalGroup(
            VentanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VentanaPrincipalLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(VentanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(VentanaPrincipalLayout.createSequentialGroup()
                        .addComponent(jLabel26)
                        .addGap(100, 100, 100)
                        .addGroup(VentanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel24, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)
                            .addComponent(jLabel25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addGroup(VentanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(añadirjugador, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(crearequipo, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(VentanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(eliminarjugador, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(eliminarequipo, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(38, 38, 38)
                        .addComponent(jLabel21)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jugar, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(53, 53, 53)
                        .addGroup(VentanaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cargar)
                            .addComponent(gu))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(a, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 710, Short.MAX_VALUE)
                .addComponent(salir)
                .addGap(76, 76, 76))
        );

        VentanaJugador.setPreferredSize(new java.awt.Dimension(525, 525));

        nombrej.setText("Nombre");

        apellidosj.setText("Apellidos");

        edadj.setText("Edad");

        pesoj.setText("Peso");

        alturaj.setText("Altura");

        campoalt.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                campoaltActionPerformed(evt);
            }
        });

        ndeportivo.setText("Nombre Deportivo");

        colocacionj.setText("Colocación");

        atributos.setText("                                            Atributos");

        velocidadj.setText("Velocidad");

        potenciaj.setText("Potencia");

        regatej.setText("Regate");

        tiroj.setText("Tiro");

        crearjugador.setText("Crear Jugador");
        crearjugador.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                crearjugadorActionPerformed(evt);
            }
        });

        volver.setText("Volver");
        volver.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                volverActionPerformed(evt);
            }
        });

        jLabel9.setText("                                                                        MENÚ JUGADOR DE CAMPO");

        javax.swing.GroupLayout VentanaJugadorLayout = new javax.swing.GroupLayout(VentanaJugador);
        VentanaJugador.setLayout(VentanaJugadorLayout);
        VentanaJugadorLayout.setHorizontalGroup(
            VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VentanaJugadorLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, 680, Short.MAX_VALUE)
                    .addGroup(VentanaJugadorLayout.createSequentialGroup()
                        .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(nombrej, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(campon)
                            .addComponent(apellidosj, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(campoa)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VentanaJugadorLayout.createSequentialGroup()
                                .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(edadj, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(campoe, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(63, 63, 63)
                                .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(campoalt, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(alturaj, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(56, 56, 56)))
                        .addGap(18, 18, 18)
                        .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(ndeportivo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(campondep)
                            .addComponent(colocacionj, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(campoc)
                            .addComponent(pesoj, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(atributos, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(VentanaJugadorLayout.createSequentialGroup()
                                .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(velocidadj, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(campov, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 62, Short.MAX_VALUE)
                                    .addComponent(campoj, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(campopot, javax.swing.GroupLayout.DEFAULT_SIZE, 61, Short.MAX_VALUE)
                                    .addComponent(potenciaj, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addGap(18, 18, 18)
                                .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(campor, javax.swing.GroupLayout.DEFAULT_SIZE, 60, Short.MAX_VALUE)
                                    .addComponent(regatej, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(campot, javax.swing.GroupLayout.DEFAULT_SIZE, 60, Short.MAX_VALUE)
                                    .addComponent(tiroj, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addGap(0, 0, Short.MAX_VALUE))))
                    .addGroup(VentanaJugadorLayout.createSequentialGroup()
                        .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(crearjugador)
                            .addComponent(volver))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        VentanaJugadorLayout.setVerticalGroup(
            VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VentanaJugadorLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel9)
                .addGap(9, 9, 9)
                .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(VentanaJugadorLayout.createSequentialGroup()
                        .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(nombrej)
                            .addComponent(ndeportivo))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(campon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(campondep, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(apellidosj)
                            .addComponent(colocacionj))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(campoa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(campoc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(edadj)
                            .addComponent(pesoj, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(alturaj))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(campoe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(campoj, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(campoalt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(atributos)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(velocidadj)
                            .addComponent(potenciaj)
                            .addComponent(regatej)
                            .addComponent(tiroj))
                        .addGap(25, 25, 25))
                    .addGroup(VentanaJugadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(campov, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(campopot, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(campor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(campot, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addComponent(crearjugador)
                .addGap(18, 18, 18)
                .addComponent(volver)
                .addContainerGap(990, Short.MAX_VALUE))
        );

        Seleccionar.setPreferredSize(new java.awt.Dimension(700, 650));

        jcampo.setText("JUGADOR DE CAMPO");
        jcampo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jcampoActionPerformed(evt);
            }
        });

        jportero.setText("PORTERO");
        jportero.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jporteroActionPerformed(evt);
            }
        });

        jLabel1.setText("                                                  SELECCIONAR EL TIPO DE JUGADOR");

        volverj.setText("Volver");
        volverj.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                volverjActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout SeleccionarLayout = new javax.swing.GroupLayout(Seleccionar);
        Seleccionar.setLayout(SeleccionarLayout);
        SeleccionarLayout.setHorizontalGroup(
            SeleccionarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SeleccionarLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(SeleccionarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 680, Short.MAX_VALUE)
                    .addComponent(jcampo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jportero, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(SeleccionarLayout.createSequentialGroup()
                        .addComponent(volverj)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        SeleccionarLayout.setVerticalGroup(
            SeleccionarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SeleccionarLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addGap(77, 77, 77)
                .addComponent(jcampo, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(33, 33, 33)
                .addComponent(jportero, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(45, 45, 45)
                .addComponent(volverj)
                .addContainerGap(285, Short.MAX_VALUE))
        );

        VentanaPortero.setPreferredSize(new java.awt.Dimension(700, 650));

        nombrej1.setText("Nombre");

        apellidosj1.setText("Apellidos");

        edadj1.setText("Edad");

        campoe1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                campoe1ActionPerformed(evt);
            }
        });

        pesoj1.setText("Peso");

        alturaj1.setText("Altura");

        ndeportivo1.setText("Nombre Deportivo");

        colocacionj1.setText("Colocación");

        atributos1.setText("                             Atributos");

        velocidadj1.setText("Salidas");

        campov1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                campov1ActionPerformed(evt);
            }
        });

        potenciaj1.setText("Reflejos");

        campopot1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                campopot1ActionPerformed(evt);
            }
        });

        regatej1.setText("Mano a Mano");

        tiroj1.setText("Penaltis");

        crearjugador1.setText("Crear Portero");
        crearjugador1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                crearjugador1ActionPerformed(evt);
            }
        });

        volver1.setText("Volver");
        volver1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                volver1ActionPerformed(evt);
            }
        });

        jLabel13.setText("                                                                             MENÚ DE PORTERO");

        javax.swing.GroupLayout VentanaPorteroLayout = new javax.swing.GroupLayout(VentanaPortero);
        VentanaPortero.setLayout(VentanaPorteroLayout);
        VentanaPorteroLayout.setHorizontalGroup(
            VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VentanaPorteroLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(VentanaPorteroLayout.createSequentialGroup()
                        .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(nombrej1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(apellidosj1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VentanaPorteroLayout.createSequentialGroup()
                                .addGap(0, 0, Short.MAX_VALUE)
                                .addComponent(campov1, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(10, 10, 10))
                            .addGroup(VentanaPorteroLayout.createSequentialGroup()
                                .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(campoa1, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(campon1, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(VentanaPorteroLayout.createSequentialGroup()
                                        .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(edadj1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(campoe1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 56, Short.MAX_VALUE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(VentanaPorteroLayout.createSequentialGroup()
                                                .addComponent(campoj1, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(campoalt1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(VentanaPorteroLayout.createSequentialGroup()
                                                .addComponent(pesoj1, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addComponent(alturaj1, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                    .addGroup(VentanaPorteroLayout.createSequentialGroup()
                                        .addGap(200, 200, 200)
                                        .addComponent(velocidadj1)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(ndeportivo1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(campondep1)
                            .addComponent(campoc1)
                            .addComponent(colocacionj1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(VentanaPorteroLayout.createSequentialGroup()
                                .addGap(20, 20, 20)
                                .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(campopot1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(potenciaj1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(VentanaPorteroLayout.createSequentialGroup()
                                        .addGap(32, 32, 32)
                                        .addComponent(campor1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(40, 40, 40))
                                    .addGroup(VentanaPorteroLayout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(regatej1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                                .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(VentanaPorteroLayout.createSequentialGroup()
                                        .addComponent(tiroj1, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(36, 36, 36))
                                    .addGroup(VentanaPorteroLayout.createSequentialGroup()
                                        .addComponent(campot1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(0, 0, Short.MAX_VALUE))))
                            .addGroup(VentanaPorteroLayout.createSequentialGroup()
                                .addComponent(atributos1)
                                .addGap(0, 0, Short.MAX_VALUE))))
                    .addComponent(jLabel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(VentanaPorteroLayout.createSequentialGroup()
                        .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(crearjugador1)
                            .addComponent(volver1))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        VentanaPorteroLayout.setVerticalGroup(
            VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VentanaPorteroLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel13)
                .addGap(9, 9, 9)
                .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nombrej1)
                    .addComponent(ndeportivo1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(campon1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(campondep1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(apellidosj1)
                    .addComponent(colocacionj1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(campoa1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(campoc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(edadj1)
                    .addComponent(pesoj1)
                    .addComponent(alturaj1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(campoe1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(atributos1)
                    .addComponent(campoj1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(campoalt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(34, 34, 34)
                .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(velocidadj1)
                    .addComponent(potenciaj1)
                    .addComponent(regatej1)
                    .addComponent(tiroj1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(VentanaPorteroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(campov1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(campopot1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(campor1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(campot1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(65, 65, 65)
                .addComponent(crearjugador1)
                .addGap(18, 18, 18)
                .addComponent(volver1)
                .addContainerGap(778, Short.MAX_VALUE))
        );

        VentanaEquipo.setPreferredSize(new java.awt.Dimension(700, 650));

        jLabel2.setText("                                                         PANEL CREAR EQUIPO");

        jLabel3.setText("Nombre");

        jLabel4.setText("Domicilio");

        jLabel5.setText("Himno");

        jLabel6.setText("Año");

        jLabel7.setText("Dinero");

        jLabel8.setText("Bandera");

        jLabel10.setText("Nombre");

        jLabel11.setText("Apellidos");

        jLabel12.setText("Edad");

        peso.setText("Peso");

        jLabel14.setText("Altura");

        jLabel15.setText("Cargo");

        volvere.setText("Volver");
        volvere.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                volvereActionPerformed(evt);
            }
        });

        creare.setText("Crear Equipo");
        creare.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                creareActionPerformed(evt);
            }
        });

        jLabel16.setText("                               Directivo");

        RBGpresidirec.add(presidente);
        presidente.setText("Presidente");

        RBGpresidirec.add(directivo);
        directivo.setText("Director Técnico");

        javax.swing.GroupLayout VentanaEquipoLayout = new javax.swing.GroupLayout(VentanaEquipo);
        VentanaEquipo.setLayout(VentanaEquipoLayout);
        VentanaEquipoLayout.setHorizontalGroup(
            VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VentanaEquipoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 680, Short.MAX_VALUE)
                    .addGroup(VentanaEquipoLayout.createSequentialGroup()
                        .addComponent(volvere)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(creare))
                    .addGroup(VentanaEquipoLayout.createSequentialGroup()
                        .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 229, Short.MAX_VALUE)
                            .addComponent(nombreeq)
                            .addComponent(domicilio)
                            .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(himno)
                            .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(añoeq)
                            .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(dinero)
                            .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(bandera))
                        .addGap(18, 18, 18)
                        .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(nombrep)
                            .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(apellidosp)
                            .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(peso, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(VentanaEquipoLayout.createSequentialGroup()
                                .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(presidente)
                                    .addComponent(edad, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(pesop, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(altura, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(directivo))
                                .addGap(0, 0, Short.MAX_VALUE)))))
                .addContainerGap())
        );
        VentanaEquipoLayout.setVerticalGroup(
            VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VentanaEquipoLayout.createSequentialGroup()
                .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(VentanaEquipoLayout.createSequentialGroup()
                        .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(VentanaEquipoLayout.createSequentialGroup()
                                .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(VentanaEquipoLayout.createSequentialGroup()
                                        .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(VentanaEquipoLayout.createSequentialGroup()
                                                .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                    .addGroup(VentanaEquipoLayout.createSequentialGroup()
                                                        .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addGroup(VentanaEquipoLayout.createSequentialGroup()
                                                                .addComponent(jLabel2)
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                                .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                    .addComponent(jLabel3)
                                                                    .addComponent(jLabel16))
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                    .addComponent(nombreeq, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                    .addComponent(jLabel10))
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                                .addComponent(jLabel4))
                                                            .addComponent(nombrep, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                        .addComponent(domicilio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addComponent(jLabel11))
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                    .addComponent(jLabel5)
                                                    .addComponent(apellidosp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(himno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addComponent(jLabel12))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel6)
                                            .addComponent(edad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(añoeq, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(peso))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel7)
                                    .addComponent(pesop, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(dinero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jLabel14))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel8))
                    .addComponent(altura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(bandera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel15)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(presidente)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(directivo)
                .addGap(13, 13, 13)
                .addGroup(VentanaEquipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(volvere)
                    .addComponent(creare))
                .addContainerGap(200, Short.MAX_VALUE))
        );

        Eliminar.setPreferredSize(new java.awt.Dimension(700, 650));

        jLabel18.setText("                                                                      MENÚ ELIMINAR JUGADOR");

        jLabel19.setText("Introduzca los siguientes datos: ");

        jLabel20.setText("Nombre Deportivo");

        notas.setDisabledTextColor(new java.awt.Color(255, 0, 0));
        notas.setEnabled(false);
        resolucion.setViewportView(notas);

        jLabel23.setText("Nota: ");

        volverE.setText("Volver");
        volverE.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                volverEActionPerformed(evt);
            }
        });

        eliminar.setText("Eliminar");
        eliminar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                eliminarActionPerformed(evt);
            }
        });

        areaS.setColumns(20);
        areaS.setRows(5);
        jScrollPane1.setViewportView(areaS);

        javax.swing.GroupLayout EliminarLayout = new javax.swing.GroupLayout(Eliminar);
        Eliminar.setLayout(EliminarLayout);
        EliminarLayout.setHorizontalGroup(
            EliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(EliminarLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(EliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel18, javax.swing.GroupLayout.DEFAULT_SIZE, 680, Short.MAX_VALUE)
                    .addComponent(resolucion)
                    .addComponent(jLabel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(EliminarLayout.createSequentialGroup()
                        .addComponent(volverE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(eliminar))
                    .addGroup(EliminarLayout.createSequentialGroup()
                        .addGroup(EliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(EliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jLabel20, javax.swing.GroupLayout.DEFAULT_SIZE, 225, Short.MAX_VALUE)
                                .addComponent(nomdep))
                            .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addComponent(jScrollPane1)))
                .addContainerGap())
        );
        EliminarLayout.setVerticalGroup(
            EliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(EliminarLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel18)
                .addGroup(EliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(EliminarLayout.createSequentialGroup()
                        .addGap(25, 25, 25)
                        .addComponent(jLabel19)
                        .addGap(30, 30, 30)
                        .addComponent(jLabel20)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(nomdep, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(EliminarLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel23)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(resolucion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(83, 83, 83)
                .addGroup(EliminarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(volverE)
                    .addComponent(eliminar))
                .addContainerGap(274, Short.MAX_VALUE))
        );

        EliminarE.setPreferredSize(new java.awt.Dimension(700, 650));

        jLabel17.setText("Elegir Equipo: ");

        vol.setText("Volver");
        vol.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                volActionPerformed(evt);
            }
        });

        elim.setText("Eliminar");
        elim.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                elimActionPerformed(evt);
            }
        });

        textot.setColumns(20);
        textot.setRows(5);
        jScrollPane2.setViewportView(textot);

        nota2.setText("NOTA: ");

        nota22.setDisabledTextColor(new java.awt.Color(255, 0, 0));
        nota22.setEnabled(false);

        javax.swing.GroupLayout EliminarELayout = new javax.swing.GroupLayout(EliminarE);
        EliminarE.setLayout(EliminarELayout);
        EliminarELayout.setHorizontalGroup(
            EliminarELayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(EliminarELayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(EliminarELayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(nota22)
                    .addComponent(jScrollPane2)
                    .addGroup(EliminarELayout.createSequentialGroup()
                        .addComponent(vol)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(elim))
                    .addGroup(EliminarELayout.createSequentialGroup()
                        .addGroup(EliminarELayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(campoEq, javax.swing.GroupLayout.PREFERRED_SIZE, 223, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(nota2, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 457, Short.MAX_VALUE)))
                .addContainerGap())
        );
        EliminarELayout.setVerticalGroup(
            EliminarELayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(EliminarELayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel17)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(campoEq, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 404, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(nota2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(nota22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(22, 22, 22)
                .addGroup(EliminarELayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(vol)
                    .addComponent(elim))
                .addGap(86, 86, 86))
        );

        ElegirE.setPreferredSize(new java.awt.Dimension(700, 650));

        jLabel22.setText("Elegir Equipo: ");

        campoEq1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                campoEq1ActionPerformed(evt);
            }
        });

        vol1.setText("Volver");
        vol1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                vol1ActionPerformed(evt);
            }
        });

        elim1.setText("Siguiente");
        elim1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                elim1ActionPerformed(evt);
            }
        });

        texto1.setColumns(20);
        texto1.setRows(5);
        jScrollPane3.setViewportView(texto1);

        nota3.setText("NOTA: ");

        nota23.setDisabledTextColor(new java.awt.Color(255, 0, 0));
        nota23.setEnabled(false);

        javax.swing.GroupLayout ElegirELayout = new javax.swing.GroupLayout(ElegirE);
        ElegirE.setLayout(ElegirELayout);
        ElegirELayout.setHorizontalGroup(
            ElegirELayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ElegirELayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(ElegirELayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(nota23)
                    .addComponent(jScrollPane3)
                    .addGroup(ElegirELayout.createSequentialGroup()
                        .addComponent(vol1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(elim1))
                    .addGroup(ElegirELayout.createSequentialGroup()
                        .addGroup(ElegirELayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(campoEq1, javax.swing.GroupLayout.PREFERRED_SIZE, 223, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(nota3, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 457, Short.MAX_VALUE)))
                .addContainerGap())
        );
        ElegirELayout.setVerticalGroup(
            ElegirELayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ElegirELayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel22)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(campoEq1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 404, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(nota3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(nota23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(22, 22, 22)
                .addGroup(ElegirELayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(vol1)
                    .addComponent(elim1))
                .addGap(86, 86, 86))
        );

        jugarS.setPreferredSize(new java.awt.Dimension(700, 650));

        fichar.setText("FICHAR");
        fichar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ficharActionPerformed(evt);
            }
        });

        traspasar.setText("TRASPASAR");
        traspasar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                traspasarActionPerformed(evt);
            }
        });

        vender.setText("VENDER");
        vender.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                venderActionPerformed(evt);
            }
        });

        jLabel27.setText("               MENÚ JUGAR");

        volverMP.setText("Volver a Menú Principal");
        volverMP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                volverMPActionPerformed(evt);
            }
        });

        volverm.setText("Volver");
        volverm.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                volvermActionPerformed(evt);
            }
        });

        guardar.setText("Guardar");
        guardar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                guardarActionPerformed(evt);
            }
        });

        jButton1.setText("COMENZAR PARTIDO");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setText("COMENZAR TORNEO");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jButton3.setText(" Calendario");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        jButton4.setText("FICHAR DE EQUIPO");

        javax.swing.GroupLayout jugarSLayout = new javax.swing.GroupLayout(jugarS);
        jugarS.setLayout(jugarSLayout);
        jugarSLayout.setHorizontalGroup(
            jugarSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jugarSLayout.createSequentialGroup()
                .addGroup(jugarSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jugarSLayout.createSequentialGroup()
                        .addGap(224, 224, 224)
                        .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jugarSLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(volverMP)
                        .addGap(259, 259, 259)
                        .addComponent(guardar, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jugarSLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 282, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jugarSLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jugarSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(fichar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(traspasar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(vender, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(jugarSLayout.createSequentialGroup()
                                .addComponent(volverm)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(notaG, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        jugarSLayout.setVerticalGroup(
            jugarSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jugarSLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel27)
                .addGap(29, 29, 29)
                .addComponent(jButton4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(fichar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(traspasar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(vender)
                .addGap(50, 50, 50)
                .addComponent(jButton1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton3)
                .addGap(24, 24, 24)
                .addGroup(jugarSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(volverMP)
                    .addComponent(guardar))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jugarSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(volverm)
                    .addComponent(notaG, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(259, Short.MAX_VALUE))
        );

        Fichar.setPreferredSize(new java.awt.Dimension(700, 650));

        jLabel28.setText("                                                                       MENÚ FICHAR");

        dineroD.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dineroDActionPerformed(evt);
            }
        });

        jLabel29.setText("Dinero Disponible");

        areaf.setColumns(20);
        areaf.setRows(5);
        jScrollPane4.setViewportView(areaf);

        jLabel30.setText("Jugadores Disponibles");

        jLabel31.setText("Escriba el nombre deportivo del jugador: ");

        jLabel32.setText("NOTA:");

        volverf.setText("Volver");
        volverf.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                volverfActionPerformed(evt);
            }
        });

        fichas.setText("Fichar");
        fichas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fichasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout FicharLayout = new javax.swing.GroupLayout(Fichar);
        Fichar.setLayout(FicharLayout);
        FicharLayout.setHorizontalGroup(
            FicharLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(FicharLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(FicharLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(FicharLayout.createSequentialGroup()
                        .addComponent(dineroD, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jScrollPane4))
                    .addGroup(FicharLayout.createSequentialGroup()
                        .addGroup(FicharLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(FicharLayout.createSequentialGroup()
                                .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(FicharLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(jLabel32, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(nomdd, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel31, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addComponent(notaf, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 382, Short.MAX_VALUE))
                    .addGroup(FicharLayout.createSequentialGroup()
                        .addComponent(volverf)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(fichas)))
                .addContainerGap())
        );
        FicharLayout.setVerticalGroup(
            FicharLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(FicharLayout.createSequentialGroup()
                .addComponent(jLabel28)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(FicharLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel29)
                    .addComponent(jLabel30))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(FicharLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dineroD, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(10, 10, 10)
                .addComponent(jLabel31)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(nomdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel32)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(notaf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(36, 36, 36)
                .addGroup(FicharLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(volverf)
                    .addComponent(fichas))
                .addGap(0, 251, Short.MAX_VALUE))
        );

        Traspasar.setPreferredSize(new java.awt.Dimension(700, 650));

        jLabel33.setText("                                                                              MENÚ TRASPASAR");

        jds.setColumns(20);
        jds.setRows(5);
        aa.setViewportView(jds);

        jLabel34.setText("Mis Jugadores");

        mjds.setColumns(20);
        mjds.setRows(5);
        jScrollPane6.setViewportView(mjds);

        jLabel35.setText("Todos los Jugadores");

        jLabel36.setText("Elija Jugadores: (Máximo 4)");

        jLabel37.setText("Nombre");

        jLabel38.setText("Nombre");

        jLabel39.setText("Nombre");

        jLabel40.setText("Nombre");

        n2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                n2ActionPerformed(evt);
            }
        });

        n3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                n3ActionPerformed(evt);
            }
        });

        ve.setText("Volver");
        ve.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                veActionPerformed(evt);
            }
        });

        si.setText("Siguiente");
        si.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                siActionPerformed(evt);
            }
        });

        tujugador.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tujugadorActionPerformed(evt);
            }
        });

        jLabel45.setText("Jugador para fichar");

        javax.swing.GroupLayout TraspasarLayout = new javax.swing.GroupLayout(Traspasar);
        Traspasar.setLayout(TraspasarLayout);
        TraspasarLayout.setHorizontalGroup(
            TraspasarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(TraspasarLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(TraspasarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(TraspasarLayout.createSequentialGroup()
                        .addGroup(TraspasarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(TraspasarLayout.createSequentialGroup()
                                .addComponent(jLabel36, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel37, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(66, 66, 66)
                                .addComponent(jLabel38)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(TraspasarLayout.createSequentialGroup()
                                .addComponent(jLabel45, javax.swing.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE)
                                .addGap(115, 115, 115)
                                .addComponent(n1, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(28, 28, 28)
                                .addComponent(n2, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(22, 22, 22)))
                        .addGroup(TraspasarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, TraspasarLayout.createSequentialGroup()
                                .addComponent(jLabel39)
                                .addGap(82, 82, 82)
                                .addComponent(jLabel40, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(58, 58, 58))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, TraspasarLayout.createSequentialGroup()
                                .addComponent(n3, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(27, 27, 27)
                                .addComponent(n4, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(31, 31, 31))))
                    .addGroup(TraspasarLayout.createSequentialGroup()
                        .addGroup(TraspasarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel33, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(aa)
                            .addComponent(jScrollPane6)
                            .addGroup(TraspasarLayout.createSequentialGroup()
                                .addGroup(TraspasarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel35)
                                    .addComponent(jLabel34))
                                .addGap(0, 0, Short.MAX_VALUE))
                            .addGroup(TraspasarLayout.createSequentialGroup()
                                .addComponent(ve)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(si)))
                        .addContainerGap())
                    .addGroup(TraspasarLayout.createSequentialGroup()
                        .addComponent(tujugador, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))))
        );
        TraspasarLayout.setVerticalGroup(
            TraspasarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(TraspasarLayout.createSequentialGroup()
                .addComponent(jLabel33)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel34)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(aa, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(28, 28, 28)
                .addComponent(jLabel35)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(TraspasarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel36)
                    .addComponent(jLabel37)
                    .addComponent(jLabel38)
                    .addComponent(jLabel39)
                    .addComponent(jLabel40))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(TraspasarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(TraspasarLayout.createSequentialGroup()
                        .addGroup(TraspasarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(n1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(n2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(n3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(n4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(71, 71, 71))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, TraspasarLayout.createSequentialGroup()
                        .addComponent(jLabel45)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(tujugador, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(34, 34, 34)))
                .addGroup(TraspasarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(ve)
                    .addComponent(si))
                .addGap(0, 148, Short.MAX_VALUE))
        );

        Vender.setPreferredSize(new java.awt.Dimension(700, 650));

        jLabel41.setText("                                                                           MENÚ VENDER");

        mj.setColumns(20);
        mj.setRows(5);
        jScrollPane5.setViewportView(mj);

        jLabel42.setText("Mis Jugadores");

        jse.setColumns(20);
        jse.setRows(5);
        jScrollPane7.setViewportView(jse);

        jLabel43.setText("Jugadores sin equipo");

        jLabel44.setText("Nombre");

        nn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nnActionPerformed(evt);
            }
        });

        vv.setText("Volver");
        vv.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                vvActionPerformed(evt);
            }
        });

        vder.setText("Vender");
        vder.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                vderActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout VenderLayout = new javax.swing.GroupLayout(Vender);
        Vender.setLayout(VenderLayout);
        VenderLayout.setHorizontalGroup(
            VenderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VenderLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(VenderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel41, javax.swing.GroupLayout.DEFAULT_SIZE, 680, Short.MAX_VALUE)
                    .addComponent(jScrollPane5)
                    .addComponent(jScrollPane7)
                    .addGroup(VenderLayout.createSequentialGroup()
                        .addGroup(VenderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel42, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel43)
                            .addComponent(jLabel44)
                            .addComponent(nn, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(VenderLayout.createSequentialGroup()
                        .addComponent(vv)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(vder)))
                .addContainerGap())
        );
        VenderLayout.setVerticalGroup(
            VenderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VenderLayout.createSequentialGroup()
                .addComponent(jLabel41)
                .addGap(28, 28, 28)
                .addComponent(jLabel42)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel44)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(nn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(33, 33, 33)
                .addComponent(jLabel43)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(41, 41, 41)
                .addGroup(VenderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(vv)
                    .addComponent(vder))
                .addGap(0, 228, Short.MAX_VALUE))
        );

        bjugar.setPreferredSize(new java.awt.Dimension(700, 650));

        jLabel46.setText("                                                                      JUGAR PARTIDO");

        vP.setText("Volver");
        vP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                vPActionPerformed(evt);
            }
        });

        jLabel47.setText("Equipo Local");

        jLabel48.setText("Equipo Visitante");

        jLabel49.setText("Ganador:");

        bjugarp.setText("Jugar");
        bjugarp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bjugarpActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout bjugarLayout = new javax.swing.GroupLayout(bjugar);
        bjugar.setLayout(bjugarLayout);
        bjugarLayout.setHorizontalGroup(
            bjugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(bjugarLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(bjugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(bjugarLayout.createSequentialGroup()
                        .addComponent(jLabel46, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(bjugarLayout.createSequentialGroup()
                        .addGroup(bjugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(vP)
                            .addComponent(jLabel47, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(eql)
                            .addComponent(jLabel48, javax.swing.GroupLayout.DEFAULT_SIZE, 157, Short.MAX_VALUE)
                            .addComponent(eqv))
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, bjugarLayout.createSequentialGroup()
                .addContainerGap(380, Short.MAX_VALUE)
                .addComponent(jLabel49)
                .addGap(18, 18, 18)
                .addGroup(bjugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(bjugarp, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(resultado, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(68, 68, 68))
            .addGroup(bjugarLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(error, javax.swing.GroupLayout.PREFERRED_SIZE, 243, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        bjugarLayout.setVerticalGroup(
            bjugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(bjugarLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel46)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel47)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(eql, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20)
                .addGroup(bjugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel49)
                    .addComponent(resultado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(2, 2, 2)
                .addComponent(jLabel48)
                .addGap(18, 18, 18)
                .addGroup(bjugarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(eqv, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(bjugarp, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(39, 39, 39)
                .addComponent(error)
                .addGap(18, 18, 18)
                .addComponent(vP)
                .addContainerGap(337, Short.MAX_VALUE))
        );

        JugarT.setPreferredSize(new java.awt.Dimension(700, 650));

        jLabel50.setText("                                                                   TORNEO");

        volT.setText("Volver");
        volT.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                volTActionPerformed(evt);
            }
        });

        torneo.setColumns(20);
        torneo.setRows(5);
        jScrollPane9.setViewportView(torneo);

        jLabel51.setText("Equipo Campeón:");

        javax.swing.GroupLayout JugarTLayout = new javax.swing.GroupLayout(JugarT);
        JugarT.setLayout(JugarTLayout);
        JugarTLayout.setHorizontalGroup(
            JugarTLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(JugarTLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(JugarTLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel50, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 680, Short.MAX_VALUE)
                    .addGroup(JugarTLayout.createSequentialGroup()
                        .addComponent(volT)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(jScrollPane9)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, JugarTLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addGroup(JugarTLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel51, javax.swing.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE)
                            .addComponent(eqc))))
                .addContainerGap())
        );
        JugarTLayout.setVerticalGroup(
            JugarTLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(JugarTLayout.createSequentialGroup()
                .addComponent(jLabel50)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 194, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel51)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(eqc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(28, 28, 28)
                .addComponent(volT)
                .addContainerGap(339, Short.MAX_VALUE))
        );

        Calendario.setPreferredSize(new java.awt.Dimension(700, 650));

        jLabel52.setText("                                                                 CALENDARIO");

        textoc.setColumns(20);
        textoc.setRows(5);
        jScrollPane10.setViewportView(textoc);

        volverc.setText("Volver");
        volverc.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                volvercActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout CalendarioLayout = new javax.swing.GroupLayout(Calendario);
        Calendario.setLayout(CalendarioLayout);
        CalendarioLayout.setHorizontalGroup(
            CalendarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CalendarioLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(CalendarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane10, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel52, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 680, Short.MAX_VALUE)
                    .addGroup(CalendarioLayout.createSequentialGroup()
                        .addComponent(volverc)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        CalendarioLayout.setVerticalGroup(
            CalendarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CalendarioLayout.createSequentialGroup()
                .addComponent(jLabel52)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 315, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(volverc)
                .addGap(0, 262, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDesktopPane1Layout = new javax.swing.GroupLayout(jDesktopPane1);
        jDesktopPane1.setLayout(jDesktopPane1Layout);
        jDesktopPane1Layout.setHorizontalGroup(
            jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(VentanaPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(VentanaJugador, javax.swing.GroupLayout.DEFAULT_SIZE, 700, Short.MAX_VALUE))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(Seleccionar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(VentanaPortero, javax.swing.GroupLayout.DEFAULT_SIZE, 680, Short.MAX_VALUE)
                    .addContainerGap()))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(VentanaEquipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 48, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(Eliminar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(EliminarE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(ElegirE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(jugarS, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(Fichar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(Traspasar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(Vender, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(bjugar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(JugarT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(Calendario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
        );
        jDesktopPane1Layout.setVerticalGroup(
            jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(VentanaPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, 1300, Short.MAX_VALUE)
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(VentanaJugador, javax.swing.GroupLayout.DEFAULT_SIZE, 1300, Short.MAX_VALUE))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 48, Short.MAX_VALUE)
                    .addComponent(Seleccionar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 49, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(VentanaPortero, javax.swing.GroupLayout.DEFAULT_SIZE, 1278, Short.MAX_VALUE)
                    .addContainerGap()))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 97, Short.MAX_VALUE)
                    .addComponent(VentanaEquipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 98, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addComponent(Eliminar, javax.swing.GroupLayout.DEFAULT_SIZE, 1289, Short.MAX_VALUE)
                    .addContainerGap()))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(EliminarE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(ElegirE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(jugarS, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(Fichar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(Traspasar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(Vender, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(bjugar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(JugarT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDesktopPane1Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(Calendario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
        );
        jDesktopPane1.setLayer(VentanaPrincipal, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDesktopPane1.setLayer(VentanaJugador, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDesktopPane1.setLayer(Seleccionar, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDesktopPane1.setLayer(VentanaPortero, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDesktopPane1.setLayer(VentanaEquipo, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDesktopPane1.setLayer(Eliminar, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDesktopPane1.setLayer(EliminarE, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDesktopPane1.setLayer(ElegirE, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDesktopPane1.setLayer(jugarS, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDesktopPane1.setLayer(Fichar, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDesktopPane1.setLayer(Traspasar, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDesktopPane1.setLayer(Vender, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDesktopPane1.setLayer(bjugar, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDesktopPane1.setLayer(JugarT, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDesktopPane1.setLayer(Calendario, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 700, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 556, Short.MAX_VALUE)
                .addGap(0, 0, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void eliminarjugadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_eliminarjugadorActionPerformed
        VentanaPrincipal.setVisible(false);
        Eliminar.setVisible(true);
        areaS.setText(mercado.toString());
    }//GEN-LAST:event_eliminarjugadorActionPerformed

    private void añadirjugadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_añadirjugadorActionPerformed
        VentanaPrincipal.setVisible(false);
        Seleccionar.setVisible(true);
    }//GEN-LAST:event_añadirjugadorActionPerformed

    private void jcampoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcampoActionPerformed
        Seleccionar.setVisible(false);
        VentanaJugador.setVisible(true);
    }//GEN-LAST:event_jcampoActionPerformed

    private void salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_salirActionPerformed
        System.exit(WIDTH);
    }//GEN-LAST:event_salirActionPerformed

    private void crearequipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_crearequipoActionPerformed
        VentanaEquipo.setVisible(true);
        VentanaPrincipal.setVisible(false);


    }//GEN-LAST:event_crearequipoActionPerformed

    private void volverActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_volverActionPerformed
        VentanaJugador.setVisible(false);
        Seleccionar.setVisible(true);
    }//GEN-LAST:event_volverActionPerformed

    private void volverjActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_volverjActionPerformed
        Seleccionar.setVisible(false);
        VentanaPrincipal.setVisible(true);
    }//GEN-LAST:event_volverjActionPerformed

    private void jporteroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jporteroActionPerformed
        VentanaPortero.setVisible(true);
        Seleccionar.setVisible(false);
    }//GEN-LAST:event_jporteroActionPerformed

    private void volver1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_volver1ActionPerformed
        VentanaPortero.setVisible(false);
        Seleccionar.setVisible(true);
    }//GEN-LAST:event_volver1ActionPerformed

    private void crearjugadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_crearjugadorActionPerformed
        JugadorDeCampo j = new JugadorDeCampo((String) campon.getText(), (String) campoa.getText(), Integer.parseInt(campoe.getText()), Double.parseDouble(campoj.getText()), Double.parseDouble(campoalt.getText()), (String) campondep.getText(), Integer.parseInt(campoc.getText()), Integer.parseInt(campov.getText()), Integer.parseInt(campopot.getText()), Integer.parseInt(campor.getText()), Integer.parseInt(campot.getText()));
        //mercado.jugadores_sin_equipo.add(j);
        this.mercado.jugadores_sin_equipo.add(j);
        //Limpiar los campos
        campon.setText("");
        campoa.setText("");
        campoe.setText("");
        campoj.setText("");
        campoalt.setText("");
        campondep.setText("");
        campoc.setText("");
        campov.setText("");
        campopot.setText("");
        campor.setText("");
        campot.setText("");
        //Comprobacion para activar el CREAR EQUIPO
        if (mercado.jugadores_sin_equipo.size() >= 11) {
            crearequipo.setVisible(true);
        }
        VentanaJugador.setVisible(false);
        VentanaPrincipal.setVisible(true);


    }//GEN-LAST:event_crearjugadorActionPerformed

    private void volvereActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_volvereActionPerformed
        VentanaEquipo.setVisible(false);
        VentanaPrincipal.setVisible(true);
    }//GEN-LAST:event_volvereActionPerformed

    private void campoaltActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_campoaltActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_campoaltActionPerformed

    private void crearjugador1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_crearjugador1ActionPerformed
        Portero portero = new Portero((String) campon1.getText(), (String) campoa1.getText(), Integer.parseInt(campoe1.getText()), Double.parseDouble(campoj1.getText()), Double.parseDouble(campoalt1.getText()), (String) campondep1.getText(), Integer.parseInt(campoc1.getText()), Integer.parseInt(campov1.getText()), Integer.parseInt(campopot1.getText()), Integer.parseInt(campor1.getText()), Integer.parseInt(campot1.getText()));
        mercado.jugadores_sin_equipo.add(portero);
        //Limpiar los campos
        campon1.setText("");
        campoa1.setText("");
        campoe1.setText("");
        campoj1.setText("");
        campoalt1.setText("");
        campondep1.setText("");
        campoc1.setText("");
        campov1.setText("");
        campopot1.setText("");
        campor1.setText("");
        campot1.setText("");
        //Comprobacion
        if (mercado.jugadores_sin_equipo.size() >= 11) {
            crearequipo.setVisible(true);
        }
        VentanaPortero.setVisible(false);
        VentanaPrincipal.setVisible(true);
    }//GEN-LAST:event_crearjugador1ActionPerformed

    private void volverEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_volverEActionPerformed
        VentanaPrincipal.setVisible(true);
        Eliminar.setVisible(false);
        notas.setText("");
        nomdep.setText("");
    }//GEN-LAST:event_volverEActionPerformed


    private void campopot1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_campopot1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_campopot1ActionPerformed

    private void campov1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_campov1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_campov1ActionPerformed

    private void creareActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_creareActionPerformed
        int contador = 1;
        ArrayList<Jugador> juga = new ArrayList();
        Iterator<Jugador> it = mercado.jugadores_sin_equipo.iterator();

        //while (it.hasNext() && (contador < 11)) {
        for (int i = 1; i < 11; i++) {
            Jugador j1 = it.next();
            juga.add(j1);
            //mercado.jugadores_sin_equipo.remove(j1);
        }
            //contador = contador + 1;

        String car;
        if (presidente.getAutoscrolls()) {
            car = "Presidente";
        } else {
            car = "Director técnico";
        }
        Directivo dire = new Directivo(nombrep.getText(), apellidosp.getText(), Integer.parseInt(edad.getText()), Double.parseDouble(pesop.getText()), Double.parseDouble(altura.getText()), car);
        ArrayList<Directivo> direc = new ArrayList();
        direc.add(dire);
        Equipo e1 = new Equipo(nombreeq.getText(), domicilio.getText(), Integer.parseInt(añoeq.getText()), himno.getText(), Double.parseDouble(dinero.getText()), bandera.getText(), juga, direc);
        mercado.añadirEquipo(e1);

        /*for(int i=1;i<11;i++)
         mercado.jugadores_sin_equipo.remove(i);*/
        VentanaPrincipal.setVisible(true);
        VentanaEquipo.setVisible(false);
        while ((contador < 11) && (it.hasNext())) {
            Jugador j = it.next();
            /*if(mercado.jugadores_sin_equipo!=null){
             mercado.jugadores_sin_equipo.remove(j);
             System.out.println(contador);}
             contador++;*/
        }
    }//GEN-LAST:event_creareActionPerformed

    private void eliminarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_eliminarActionPerformed

        Jugador ju = new Jugador("", "", 0, 0, 0, (String) nomdep.getText(), 0);
        if (mercado.jugadores_sin_equipo.contains(ju)) {
            mercado.jugadores_sin_equipo.remove(ju);
            notas.setText("El jugador ha sido eliminado correctamente.");

        } else {
            notas.setText("El jugador no existe. No ha sido eliminado.");
        }
        if (mercado.jugadores_sin_equipo.size() < 11) {
            crearequipo.setVisible(false);
        }
        areaS.setText(mercado.toString());
    }//GEN-LAST:event_eliminarActionPerformed

    private void cargarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cargarActionPerformed

        JFileChooser dlg = new JFileChooser();
        dlg.setFileFilter(filtro);
        int opc = dlg.showOpenDialog(this);
        if (opc == JFileChooser.APPROVE_OPTION) {
            String archivo = dlg.getSelectedFile().getPath();
            mercado.cargarPartida(archivo);
            notaP.setText("Cargado correctamente");
        } else if ((opc == JFileChooser.ERROR_OPTION) || (opc == JFileChooser.CANCEL_OPTION)) {
            notaP.setText("Error al cargar partida");
        }
        if (mercado.jugadores_sin_equipo.size() >= 11) {
            crearequipo.setVisible(true);
        }
    }//GEN-LAST:event_cargarActionPerformed

    private void notaPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_notaPActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_notaPActionPerformed

    private void eliminarequipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_eliminarequipoActionPerformed

        VentanaPrincipal.setVisible(false);
        textot.setText("");
        EliminarE.setVisible(true);
        textot.setText("Equipos: " + "\n" + mercado.equipos.toString());

    }//GEN-LAST:event_eliminarequipoActionPerformed

    private void volActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_volActionPerformed
        VentanaPrincipal.setVisible(true);
        EliminarE.setVisible(false);
        textot.setText("");
        campoEq.setText("");
        nota22.setText("");
    }//GEN-LAST:event_volActionPerformed

    private void elimActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_elimActionPerformed
        String campo = campoEq.getText();
        Equipo e = new Equipo(campo, "", 0, "", 0, "", null, null);
        if (mercado.equipos.contains(e)) {

            mercado.equipos.remove(e);
            nota22.setText("El equipo ha sido eliminado correctamente");
            textot.setText("Equipos: " + "\n" + mercado.equipos.toString());
        } else {
            nota22.setText("El equipo no se encuentra, no se ha podido eliminar");
        }
    }//GEN-LAST:event_elimActionPerformed

    private void vol1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vol1ActionPerformed
        VentanaPrincipal.setVisible(true);
        ElegirE.setVisible(false);
    }//GEN-LAST:event_vol1ActionPerformed

    private void elim1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_elim1ActionPerformed

        ArrayList<Jugador> j1 = null;
        ArrayList<Directivo> j2 = null;

        String equi = campoEq1.getText();
        Equipo e1 = new Equipo(equi, "", 0, "", 0, "", j1, j2);
        int posicion = mercado.equipos.indexOf(e1);
        if (posicion > -1) {

            miEquipo = mercado.equipos.get(posicion);
            ElegirE.setVisible(false);
            jugarS.setVisible(true);
            nota23.setText("");

        } else {
            nota23.setText("Equipo no disponible, crealo o seleccione otro");
        }


    }//GEN-LAST:event_elim1ActionPerformed

    private void jugarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jugarActionPerformed
        VentanaPrincipal.setVisible(false);
        ElegirE.setVisible(true);
        texto1.setText("Equipos: " + "\n" + mercado.equipos.toString());

    }//GEN-LAST:event_jugarActionPerformed

    private void volverMPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_volverMPActionPerformed
        VentanaPrincipal.setVisible(true);
        jugarS.setVisible(false);
    }//GEN-LAST:event_volverMPActionPerformed

    private void volvermActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_volvermActionPerformed
        ElegirE.setVisible(true);
        jugarS.setVisible(false);
    }//GEN-LAST:event_volvermActionPerformed

    private void guardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_guardarActionPerformed
        JFileChooser dlg = new JFileChooser();
        dlg.setFileFilter(filtro);
        int opc = dlg.showSaveDialog(this);
        if (opc == JFileChooser.APPROVE_OPTION) {
            String archivo = dlg.getSelectedFile().getPath();
            mercado.guardarPartida(archivo);
            notaG.setText("Guardado correctamente");
        } else if ((opc == JFileChooser.ERROR_OPTION) || (opc == JFileChooser.CANCEL_OPTION)) {
            notaG.setText("Error al Guardar partida");
        }

    }//GEN-LAST:event_guardarActionPerformed

    private void notaGActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_notaGActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_notaGActionPerformed

    private void dineroDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dineroDActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_dineroDActionPerformed

    private void volverfActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_volverfActionPerformed
        jugarS.setVisible(true);
        Fichar.setVisible(false);
    }//GEN-LAST:event_volverfActionPerformed

    private void fichasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fichasActionPerformed
        Jugador ju = new Jugador("", "", 0, 0, 0, (String) nomdd.getText(), 0);
        int posicion = mercado.jugadores_sin_equipo.indexOf(ju);
        boolean fichado = false;
        if ((posicion > -1) && ((Double.parseDouble(dineroD.getText()))) > (mercado.jugadores_sin_equipo.get(posicion).getPrecio())) {
            fichado = miEquipo.fichar(mercado.jugadores_sin_equipo.get(posicion));
            miEquipo.setDinero(miEquipo.getDinero()-mercado.jugadores_sin_equipo.get(posicion).getPrecio());
            mercado.jugadores_sin_equipo.remove(posicion);
            fichado = true;

        }
        if (fichado) {
            notaf.setText("Se ha fichado correctamente");
        } else {
            notaf.setText("No se ha podido fichar");
        }

    }//GEN-LAST:event_fichasActionPerformed

    private void ficharActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ficharActionPerformed
        jugarS.setVisible(false);
        Fichar.setVisible(true);
        dineroD.setText(String.valueOf(miEquipo.getDinero()));
        areaf.setText(mercado.toString());
    }//GEN-LAST:event_ficharActionPerformed

    private void veActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_veActionPerformed
        Traspasar.setVisible(false);
        jugarS.setVisible(true);
    }//GEN-LAST:event_veActionPerformed

    private void vvActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vvActionPerformed
        Vender.setVisible(false);
        jugarS.setVisible(true);
    }//GEN-LAST:event_vvActionPerformed

    private void traspasarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_traspasarActionPerformed
        jds.setText(miEquipo.jugadores.toString());
        mjds.setText(mercado.equipos.toString());
        jugarS.setVisible(false);
        Traspasar.setVisible(true);
        
    }//GEN-LAST:event_traspasarActionPerformed

    private void siActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_siActionPerformed
        ArrayList<Jugador> jugadoresinter = new ArrayList();
        Jugador ju = new Jugador("", "", 0, 0, 0, (String) n1.getText(), 0);
        int posicion = miEquipo.jugadores.indexOf(ju);
        boolean fichado = false;
        if (posicion > -1) {
            jugadoresinter.add(miEquipo.jugadores.get(posicion));
        }
        ju.setNombre_deportivo(n2.getText());
        posicion = miEquipo.jugadores.indexOf(ju);
        if (posicion > -1) {
            jugadoresinter.add(miEquipo.jugadores.get(posicion));
        }
        ju.setNombre_deportivo(n3.getText());
        posicion = miEquipo.jugadores.indexOf(ju);
        if (posicion > -1) {
            jugadoresinter.add(miEquipo.jugadores.get(posicion));
        }
        ju.setNombre_deportivo(n4.getText());
        posicion = miEquipo.jugadores.indexOf(ju);
        if (posicion > -1) {
            jugadoresinter.add(miEquipo.jugadores.get(posicion));
        }
        ju.setNombre_deportivo(tujugador.getText());
        Iterator<Equipo> it = mercado.equipos.iterator();
        int poseq = -1;
        int posjug = -1;
        boolean encontrado = false;
        Equipo e;
        while (it.hasNext() && !encontrado) {
            e = it.next();
            encontrado = e.jugadores.contains(ju);
            posjug = e.jugadores.indexOf(ju);
            poseq = poseq + 1;
        }
        if (encontrado) {
            miEquipo.fichar(mercado.equipos.get(poseq).jugadores.get(posjug), mercado.equipos.get(poseq), jugadoresinter);
        }
    }//GEN-LAST:event_siActionPerformed

    private void n3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_n3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_n3ActionPerformed

    private void n2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_n2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_n2ActionPerformed

    private void tujugadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tujugadorActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tujugadorActionPerformed

    private void guActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_guActionPerformed
        JFileChooser dlg = new JFileChooser();
        dlg.setFileFilter(filtro);
        int opc = dlg.showSaveDialog(this);
        if (opc == JFileChooser.APPROVE_OPTION) {
            String archivo = dlg.getSelectedFile().getPath();
            mercado.guardarPartida(archivo);
            campog.setText("Guardado correctamente");
        } else if ((opc == JFileChooser.ERROR_OPTION) || (opc == JFileChooser.CANCEL_OPTION)) {
            campog.setText("Error al Guardar partida");
        }
    }//GEN-LAST:event_guActionPerformed


    private void campoe1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_campoe1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_campoe1ActionPerformed


    private void vPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vPActionPerformed
        bjugar.setVisible(false);
        jugarS.setVisible(true);
    }//GEN-LAST:event_vPActionPerformed

    private void volTActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_volTActionPerformed
        JugarT.setVisible(false);
        jugarS.setVisible(true);
    }//GEN-LAST:event_volTActionPerformed

    private void volvercActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_volvercActionPerformed
        Calendario.setVisible(false);
        jugarS.setVisible(true);

    }//GEN-LAST:event_volvercActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        jugarS.setVisible(false);
        bjugar.setVisible(true);
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        jugarS.setVisible(false);
        String aux ="";
        Calendario c = new Calendario(mercado.equipos);
        c.generarCalCopa();
        for (Equipo e:mercado.equipos){
            aux+="- "+e.getNombre()+"\n";
        }   
        Torneo t = new Torneo("copa");
        t.disputar(c);
        eqc.setText(t.getCampeon().getNombre());
        torneo.setText(aux);
        JugarT.setVisible(true);
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        Calendario c = new Calendario(mercado.equipos);
        jugarS.setVisible(false);
        c.generarCalCopa();
        textoc.setText(c.toString());
        jButton2.setEnabled(true);
        Calendario.setVisible(true);
    }//GEN-LAST:event_jButton3ActionPerformed

    private void bjugarpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bjugarpActionPerformed
        // TODO add your handling code here:
   
            Equipo local = mercado.buscarEquipo(eql.getText(),mercado.equipos);
            Equipo visitante = mercado.buscarEquipo(eqv.getText(),mercado.equipos);
            Partido p = new Partido(local,visitante);
            p.jugar();
            resultado.setText(p.getResultado());
  

    }//GEN-LAST:event_bjugarpActionPerformed

    private void venderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_venderActionPerformed
        // TODO add your handling code here:
           
        jugarS.setVisible(false);
        Vender.setVisible(true);
        Equipo e = mercado.buscarEquipo(campoEq1.getText(),mercado.equipos);
        mj.setText(e.getJugadores());
        jse.setText(mercado.jugadores_sin_equipo.toString());
    }//GEN-LAST:event_venderActionPerformed

    private void nnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nnActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_nnActionPerformed

    private void campoEq1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_campoEq1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_campoEq1ActionPerformed

    private void vderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vderActionPerformed
        // TODO add your handling code here:
          Equipo e = mercado.buscarEquipo(campoEq1.getText(),mercado.equipos);
          Jugador aux = e.buscarJugador(campoEq1.getText());
          mercado.jugadores_sin_equipo.add(aux);
          e.jugadores.remove(aux);
          e.setDinero(e.getDinero()+aux.getPrecio());
          mj.setText(e.getJugadores());
          jse.setText(mercado.jugadores_sin_equipo.toString());
    }//GEN-LAST:event_vderActionPerformed


    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;

                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(VentanaPrincipal.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(VentanaPrincipal.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(VentanaPrincipal.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(VentanaPrincipal.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new VentanaPrincipal().setVisible(true);

            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel Calendario;
    private javax.swing.JPanel ElegirE;
    private javax.swing.JPanel Eliminar;
    private javax.swing.JPanel EliminarE;
    private javax.swing.JPanel Fichar;
    private javax.swing.JPanel JugarT;
    private javax.swing.ButtonGroup RBGpresidirec;
    private javax.swing.JPanel Seleccionar;
    private javax.swing.JPanel Traspasar;
    private javax.swing.JPanel Vender;
    private javax.swing.JPanel VentanaEquipo;
    private javax.swing.JPanel VentanaJugador;
    private javax.swing.JPanel VentanaPortero;
    private javax.swing.JPanel VentanaPrincipal;
    private javax.swing.JScrollPane a;
    private javax.swing.JScrollPane aa;
    private javax.swing.JTextField altura;
    private javax.swing.JLabel alturaj;
    private javax.swing.JLabel alturaj1;
    private javax.swing.JLabel apellidosj;
    private javax.swing.JLabel apellidosj1;
    private javax.swing.JTextField apellidosp;
    private javax.swing.JTextArea areaS;
    private javax.swing.JTextArea areaf;
    private javax.swing.JLabel atributos;
    private javax.swing.JLabel atributos1;
    private javax.swing.JButton añadirjugador;
    private javax.swing.JTextField añoeq;
    private javax.swing.JTextField bandera;
    private javax.swing.JPanel bjugar;
    private javax.swing.JButton bjugarp;
    private javax.swing.JTextField campoEq;
    private javax.swing.JTextField campoEq1;
    private javax.swing.JTextField campoa;
    private javax.swing.JTextField campoa1;
    private javax.swing.JTextField campoalt;
    private javax.swing.JTextField campoalt1;
    private javax.swing.JTextField campoc;
    private javax.swing.JTextField campoc1;
    private javax.swing.JTextField campoe;
    private javax.swing.JTextField campoe1;
    private javax.swing.JTextPane campog;
    private javax.swing.JTextField campoj;
    private javax.swing.JTextField campoj1;
    private javax.swing.JTextField campon;
    private javax.swing.JTextField campon1;
    private javax.swing.JTextField campondep;
    private javax.swing.JTextField campondep1;
    private javax.swing.JTextField campopot;
    private javax.swing.JTextField campopot1;
    private javax.swing.JTextField campor;
    private javax.swing.JTextField campor1;
    private javax.swing.JTextField campot;
    private javax.swing.JTextField campot1;
    private javax.swing.JTextField campov;
    private javax.swing.JTextField campov1;
    private javax.swing.JButton cargar;
    private javax.swing.JLabel colocacionj;
    private javax.swing.JLabel colocacionj1;
    private javax.swing.JButton creare;
    private javax.swing.JButton crearequipo;
    private javax.swing.JButton crearjugador;
    private javax.swing.JButton crearjugador1;
    private javax.swing.JTextField dinero;
    private javax.swing.JTextField dineroD;
    private javax.swing.JRadioButton directivo;
    private javax.swing.JTextField domicilio;
    private javax.swing.JTextField edad;
    private javax.swing.JLabel edadj;
    private javax.swing.JLabel edadj1;
    private javax.swing.JButton elim;
    private javax.swing.JButton elim1;
    private javax.swing.JButton eliminar;
    private javax.swing.JButton eliminarequipo;
    private javax.swing.JButton eliminarjugador;
    private javax.swing.JTextField eqc;
    private javax.swing.JTextField eql;
    private javax.swing.JTextField eqv;
    private javax.swing.JLabel error;
    private javax.swing.JButton fichar;
    private javax.swing.JButton fichas;
    private javax.swing.JButton gu;
    private javax.swing.JButton guardar;
    private javax.swing.JTextField himno;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JDesktopPane jDesktopPane1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JButton jcampo;
    private javax.swing.JTextArea jds;
    private javax.swing.JButton jportero;
    private javax.swing.JTextArea jse;
    private javax.swing.JButton jugar;
    private javax.swing.JPanel jugarS;
    private javax.swing.JTextArea mj;
    private javax.swing.JTextArea mjds;
    private javax.swing.JTextField n1;
    private javax.swing.JTextField n2;
    private javax.swing.JTextField n3;
    private javax.swing.JTextField n4;
    private javax.swing.JLabel ndeportivo;
    private javax.swing.JLabel ndeportivo1;
    private javax.swing.JTextField nn;
    private javax.swing.JTextField nombreeq;
    private javax.swing.JLabel nombrej;
    private javax.swing.JLabel nombrej1;
    private javax.swing.JTextField nombrep;
    private javax.swing.JTextField nomdd;
    private javax.swing.JTextField nomdep;
    private javax.swing.JLabel nota2;
    private javax.swing.JTextField nota22;
    private javax.swing.JTextField nota23;
    private javax.swing.JLabel nota3;
    private javax.swing.JTextField notaG;
    private javax.swing.JTextPane notaP;
    private javax.swing.JTextField notaf;
    private javax.swing.JTextPane notas;
    private javax.swing.JLabel peso;
    private javax.swing.JLabel pesoj;
    private javax.swing.JLabel pesoj1;
    private javax.swing.JTextField pesop;
    private javax.swing.JLabel potenciaj;
    private javax.swing.JLabel potenciaj1;
    private javax.swing.JRadioButton presidente;
    private javax.swing.JLabel regatej;
    private javax.swing.JLabel regatej1;
    private javax.swing.JScrollPane resolucion;
    private javax.swing.JTextField resultado;
    private javax.swing.JButton salir;
    private javax.swing.JButton si;
    private javax.swing.JTextArea texto1;
    private javax.swing.JTextArea textoc;
    private javax.swing.JTextArea textot;
    private javax.swing.JLabel tiroj;
    private javax.swing.JLabel tiroj1;
    private javax.swing.JTextArea torneo;
    private javax.swing.JButton traspasar;
    private javax.swing.JTextField tujugador;
    private javax.swing.JButton vP;
    private javax.swing.JButton vder;
    private javax.swing.JButton ve;
    private javax.swing.JLabel velocidadj;
    private javax.swing.JLabel velocidadj1;
    private javax.swing.JButton vender;
    private javax.swing.JButton vol;
    private javax.swing.JButton vol1;
    private javax.swing.JButton volT;
    private javax.swing.JButton volver;
    private javax.swing.JButton volver1;
    private javax.swing.JButton volverE;
    private javax.swing.JButton volverMP;
    private javax.swing.JButton volverc;
    private javax.swing.JButton volvere;
    private javax.swing.JButton volverf;
    private javax.swing.JButton volverj;
    private javax.swing.JButton volverm;
    private javax.swing.JButton vv;
    // End of variables declaration//GEN-END:variables
}
